package com.zjbd.douyangcommoncore.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;

@Data
@Schema(description = "上传视频")
public class UploadVideoVo {
    /**
     * 标题
     */
    @NotBlank(message = "标题不能为空")
    @Size(min = 1, max = 20, message = "标题长度必须在1-20之间")
    @Schema(description = "标题", requiredMode = Schema.RequiredMode.REQUIRED)
    private String title;

    /**
     * 简介
     */
    @NotBlank(message = "简介不能为空")
    @Size(min = 1, max = 50, message = "简介长度必须在1-50之间")
    @Schema(description = "简介", requiredMode = Schema.RequiredMode.REQUIRED)
    private String introduction;

    /**
     * 视频播放地址
     */
    @NotBlank(message = "请先上传视频")
    @Schema(description = "视频", requiredMode = Schema.RequiredMode.REQUIRED)
    private String videoUrl;
}
